package com.kotlin.flong.base


fun main(args: Array<String>) {
    var a = 10
    var b = 10

    println(a.plus(b))

    var g1 = Girl()
    var g2 = Girl()

    var g = g1 + g2

    println(g.username)
    println(g.age)
}


class Girl {

    var username = "寅务"
    var age = 20

    //operator表示重载函数
    //推荐学习文章 https://www.jianshu.com/p/d237212bdb0d
    operator fun plus(g: Girl): Girl {
        return this
    }


}